<template>
   <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="page"
      :page-sizes="[20, 40, 60, 80]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
</template>

<script>
export default {
  props:['page','pageSize','total'],
   data(){
     return{
      //  currentPage4:1
     }
   },
   methods: {
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
        this.$emit('pageSizechange',val)
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
        this.$emit('pagechange',val)
      }
    },
}
</script>

<style>

</style>